// 封装通用的接口调用方法
const request = (path) => {
    let url = 'https://www.ehomespace.com/api/public/v1/' + path
    return new Promise(function (resolve, reject) {
        // 接口的调用
        mpvue.request({
            url: url,
            method: 'get',
            success: (res) => {
                // 获取接口调用结果
                resolve(res)
            }
        })
    })
}
export default request